package com.yue.bean;

/**
 * 实体类：
 * 要求：属性名和数据库的字段名保持一致；【默认】【推荐】
 * 如果不保持一致，则需要在mybaits的mapper映射文件中进行自主配置；
 */
public class Blog {
    private Integer id;
    private String title;
    private Integer author_id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    // 为了方便测试，项目正式上线之前删掉
    @Deprecated
    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author_id=" + author_id +
                '}';
    }
}